package deibay.client;

import deibay.client.core.views.IPanelBidder;
import deibay.client.core.views.IViewItemDetailsBidder;

/**
 * @author  Joel Cordeiro
 */
public abstract class BidderController {

	protected IModel model = null;
	protected IPanelBidder view = null;
	protected IViewItemDetailsBidder viewItemDetails = null;
	protected ItemObject selectedItem = null;
	
	public BidderController(IPanelBidder view, IModel model)
	{
		this.view = view;
		this.model = model;		
		initView();
		createViewEvents();
	}
	
	public abstract void initView();	
	public abstract void createViewEvents();						
	
	/**
	 * @return
	 */
	public IViewItemDetailsBidder getViewItemDetails()
	{
		return viewItemDetails;
	}

	/**
	 * @return
	 */
	public IModel getModel() {
		return model;
	}
	
	public IPanelBidder getBidderView() {
		return view;
	}			
}